
//给state的初始状态
const initialState ={
    all: [],
   
}

//把all单独抽离出来
const all =(state = [],action) => {
    let {type,payload} = action;
    switch(type){
        case "GET_Banner":
        return [...payload];
        default:
        return state
    }
  
}
//将reducer暴露出去
export default (state=initialState,action) => {
     return {
         all:all(state.all,action),
        
     }
} 